package com.entity;

import java.util.ArrayList;

public class Company {
    private String companyName;
    private int totalNumOfFlights;
    private ArrayList<Airway> airwayList = new ArrayList<Airway>();

    public Company() {
    }

    public Company(String companyName) {

        this.companyName = companyName;
    }

    @Override

    public String toString() {
        return "Company{" +
                "companyName='" + companyName + '\'' +
                ", totalNumOfFlights=" + totalNumOfFlights +
                ", airwayList=" + airwayList +
                '}';
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public int getTotalNumOfFlights() {
        return totalNumOfFlights;
    }

    public void setTotalNumOfFlights(int totalNumOfFlights) {
        this.totalNumOfFlights = totalNumOfFlights;
    }

    public ArrayList<Airway> getAirwayList() {
        return airwayList;
    }

    public void setAirwayList(ArrayList<Airway> airwayList) {
        this.airwayList = airwayList;
    }
}